//用户
import http from "@/utils/http";
import {EnumAlias} from "@/utils/common";
//分页
export function membersInfoPage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/page`,
    method: "get",
    params
  });
}
// //创建
// export function membersInfoCreate(data?: object) {
//   return http({
//     url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/create`,
//     method: "post",
//     data
//   });
// }
//修改
export function membersInfoUpdate(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/update`,
    method: "post",
    data
  });
}
//修改会员等级信息
export function membersInfoUpdateLevel(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/updateLevel`,
    method: "post",
    data
  });
}
//修改会员协议价信息
export function membersInfoUpdateDiscount(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/updateDiscount`,
    method: "post",
    data
  });
}
//删除
export function membersInfoDelete(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/delete`,
    method: "post",
    data
  });
}
//详情
export function membersInfoDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/detail`,
    method: "get",
    params
  });
}
//list集合
export function membersInfoList(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/list`,
    method: "get",
    params
  });
}
//修改会员信息状态
export function membersInfoChangeStatus(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/changeStatus`,
    method: "post",
    data
  });
}
//批量导出会员信息
export function membersInfoExportMembers(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/exportMembers`,
    method: "post",
    responseType: "blob",
    data
  });
}
//修改用户授信支付状态
export function membersInfoUpdateCredit(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/updateCredit`,
    method: "post",
    data
  });
}
//会员协议价详情
export function membersInfoDiscountDetail(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/DiscountDetail`,
    method: "get",
    params
  });
}
//导出会员协议信息
export function membersInfoExportMemberDiscount(data?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/exportMemberDiscount`,
    method: "post",
    responseType: "blob",
    data
  });
}
//会员等级审核列表
export function membersInfoCheckPage(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/checkPage`,
    method: "get",
    params
  });
}
//会员等级审核
export function membersInfoChangeApplyStatus(params?: object) {
  return http({
    url: `${EnumAlias.PROJECT}/${EnumAlias.MODULE_MALL}/membersInfo/changeApplyStatus`,
    method: "get",
    params
  });
}
